﻿/*CREATE TRIGGER [dbo].[Acreditaciones_DeletionTrigger] 
    ON [Acreditaciones] 
    AFTER DELETE 
AS 
SET NOCOUNT ON 
UPDATE [dbo].[Acreditaciones_Tombstone] 
    SET [DeletionDate] = GETUTCDATE() 
    FROM deleted 
    WHERE deleted.[AcreditacionGuid] = [Acreditaciones_Tombstone].[AcreditacionGuid] 
IF @@ROWCOUNT = 0 
BEGIN 
    INSERT INTO [dbo].[Acreditaciones_Tombstone] 
    ([AcreditacionGuid], DeletionDate)
    SELECT [AcreditacionGuid], GETUTCDATE()
    FROM deleted 
END*/